package com.ocean.dao.edu;

import com.ocean.dto.TeacherDto;
import com.ocean.entity.edu.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author xk
 * @version 1.0
 */
public interface TeacherDao {
    /**
     * 新增
     */

    int insert(Teacher teacher);

    /**
     * 查询
     */

    List<Teacher> selectAll();

    /**
     * 删除
     */
    int delete(int id);

    /**
     * 修改
     */
    int update(Teacher teacher);

    int insertBatch(List<Teacher> list);

    Teacher selectByName(String name);

    List<Teacher> selectWhere(@Param("name") String name);

    List<TeacherDto> selectNum();

}
